export class Rendering{

    constructor(){
        this.renderHTML();
        this.onEvents();
    }

    renderHTML(){
        console.log("topic");
        document.querySelector(".content").innerHTML = `<button class="test">话题</button>`
    }

    onEvents(){
        document.querySelector(".test").onclick = ()=>{
            console.log("topic success");
        }
    }
}
/*
export function Rendering() {
}

Rendering.prototype = {
    renderHTML:()=>{
        console.log("Test2");
        document.querySelector(".content").innerHTML = `<button class="test">无语</button>`
    },

    onEvents:()=>{
        document.querySelector(".test").onclick = ()=>{
            console.log("test success");
        }
    }
};*/
